package com.boil.qz.safekavass.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by ChenYong on 2017-04-24.
 * <br>
 * 举报实体类。
 */
public class ReportRes {
    /**
     * 编号
     */
    private Long id;
    /**
     * 微信 openid
     */
    private String openid;
    /**
     * 举报标题
     */
    private String reportName;
    /**
     * 举报内容
     */
    private String reportContent;
    /**
     * 举报图片
     */
    private String reportImages;
    /**
     * 举报人
     */
    private String reportCreatePerson;
    /**
     * 举报人手机号
     */
    private String reportCreatePersonPhone;
    /**
     * 举报时间
     */
    private Date reportCreateTime;
    /**
     * 举报来源
     */
    private String reportSource;
    /**
     * 举报结果
     */
    private String reportResult;
    /**
     * 举报奖金
     */
    private String reportMoney;
    /**
     * 举报奖金领取代码（举报结果为5时，此字段才有效）：0-未领取；1-已领取
     */
    private String receiveCode;
    /**
     * 举报流程记录
     */
    private List<ReportResRecord> reportResRecords;

    // 普通初始化块
    {
        reportResRecords = new ArrayList<ReportResRecord>();
    }

    /**
     * 默认构造器
     */
    public ReportRes() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

    public String getReportContent() {
        return reportContent;
    }

    public void setReportContent(String reportContent) {
        this.reportContent = reportContent;
    }

    public String getReportImages() {
        return reportImages;
    }

    public void setReportImages(String reportImages) {
        this.reportImages = reportImages;
    }

    public String getReportCreatePerson() {
        return reportCreatePerson;
    }

    public void setReportCreatePerson(String reportCreatePerson) {
        this.reportCreatePerson = reportCreatePerson;
    }

    public String getReportCreatePersonPhone() {
        return reportCreatePersonPhone;
    }

    public void setReportCreatePersonPhone(String reportCreatePersonPhone) {
        this.reportCreatePersonPhone = reportCreatePersonPhone;
    }

    public Date getReportCreateTime() {
        return reportCreateTime;
    }

    public void setReportCreateTime(Date reportCreateTime) {
        this.reportCreateTime = reportCreateTime;
    }

    public String getReportSource() {
        return reportSource;
    }

    public void setReportSource(String reportSource) {
        this.reportSource = reportSource;
    }

    public String getReportResult() {
        return reportResult;
    }

    public void setReportResult(String reportResult) {
        this.reportResult = reportResult;
    }

    public String getReportMoney() {
        return reportMoney;
    }

    public void setReportMoney(String reportMoney) {
        this.reportMoney = reportMoney;
    }

    public String getReceiveCode() {
        return receiveCode;
    }

    public void setReceiveCode(String receiveCode) {
        this.receiveCode = receiveCode;
    }

    public List<ReportResRecord> getReportResRecords() {
        return reportResRecords;
    }

    public void setReportResRecords(List<ReportResRecord> reportResRecords) {
        this.reportResRecords = reportResRecords;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ReportRes reportRes = (ReportRes) o;

        return id != null ? id.equals(reportRes.id) : reportRes.id == null;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ReportRes{");
        sb.append("id=").append(id);
        sb.append(", openid='").append(openid).append('\'');
        sb.append(", reportName='").append(reportName).append('\'');
        sb.append(", reportContent='").append(reportContent).append('\'');
        sb.append(", reportImages='").append(reportImages).append('\'');
        sb.append(", reportCreatePerson='").append(reportCreatePerson).append('\'');
        sb.append(", reportCreatePersonPhone='").append(reportCreatePersonPhone).append('\'');
        sb.append(", reportCreateTime=").append(reportCreateTime);
        sb.append(", reportSource='").append(reportSource).append('\'');
        sb.append(", reportResult='").append(reportResult).append('\'');
        sb.append(", reportMoney='").append(reportMoney).append('\'');
        sb.append(", receiveCode='").append(receiveCode).append('\'');
        sb.append(", reportResRecords=").append(reportResRecords);
        sb.append('}');
        return sb.toString();
    }
}